package com.lgy.itcast.haoke.dubbo.api.service;

import com.alibaba.dubbo.config.annotation.Reference;
import com.lgy.itcast.haoke.dubbo.server.api.ApiHouseResourcesService;
import com.lgy.itcast.haoke.dubbo.server.beans.HouseResources;
import org.apache.commons.lang3.BooleanUtils;
import org.springframework.stereotype.Service;

/**
 * @Author 李光耀
 * @Date 2019-05-28 16:41
 */
@Service
public class HouseResourcesService {

    @Reference(version = "1.0.0")
    private ApiHouseResourcesService apiHouseResourcesService;

    public boolean save(HouseResources houseResources) {
        int result = apiHouseResourcesService.saveHouseResources(houseResources);
        return BooleanUtils.toBoolean(result);
    }
}
